package com.edu.scheduler.jobs;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

@Component
public class FirstScheduledJob extends QuartzJobBean{
	
	private OneTask oneTask;

	@Override
	protected void executeInternal(JobExecutionContext pArg0) throws JobExecutionException {
		this.oneTask.talk();
	}

	public OneTask getOneTask() {
		return oneTask;
	}

	public void setOneTask(OneTask pOneTask) {
		oneTask = pOneTask;
	}
	
	

}
